<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<jsp:useBean id="date" class="java.util.Date" scope="page" />
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<link href="system/plugins/validateMyForm/css/plugin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="system/js/verify1.js"></script>
<script type="text/javascript" src="system/plugins/validateMyForm/js/jquery.validateMyForm.1.5.js"></script>
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" src="system/js/NewDatePicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery.blockUI.js"></script>
<script type="text/javascript" language="javascript" src="system/js/json2.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery.PrintArea.js"></script>
<script type="text/javascript" language="javascript" src="system/js/withouttax.js"></script>
<script type="text/javascript">
	$(document).ready(
		function()
		{
			$("#form1").validateMyForm(); 	
			
			//取得当前日期，只为空的时候才可以	
			if($("input[name='czRq']").val()=='')
			{
				var time=new Date();
				var month=time.getMonth() + 1;
				var date=time.getDate();
				if(month<10) month="0"+month;
				if(date<10) date="0"+date;
				var year=time.getYear();
				if(year<1000) year+=1900;
				$("input[name='cjRq']").val(year+"-"+month+"-"+date);
				$("input[name='czRq']").val(year+"-"+month+"-"+date);
				
			}
			//读完页面之后转换日期信息
			//$("input[name='djRq']").val($("input[name='djRq']").val().split(" ")[0]);
			$("input[name='sbqsny']").val(transfordate($("input[name='sbqsny']").val()));
			//读取要打印的文件
			/*$("input[name='saveandprint']").click(function(){
				$.blockUI({ message: $('div.PrintAreaPre'),
				css: { top:  ($(window).height() - 500) /2 + 'px', 
                left: ($(window).width() - 780) /2 + 'px', width: '780px',height: '500px',overflow: 'auto' } }); 


			});*/
			
			
    }); 
</script>
</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 添加表单</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table">
		
		<!-- 先查通知单，如没有再查登记信息 -->
		<mytag:List name="tdjwjccstz" table="com.zhongkai.model.ticket.TDjWjccstz">ccdjh=${param.ccdjh }</mytag:List>
		<logic:notEmpty name="tdjwjccstz">
			<logic:iterate id="tdjwjccstz_list" name="tdjwjccstz">
			
			<c:if test="${tdjwjccstz_list.zfBj=='Y' }">
				<script type="text/javascript" language="javascript">
					alert("通知单已注销！");
					window.location.href="${pageScope.basePath }system/search/unisearch.jsp?module=ticket/info_without_tax_form.jsp";
				</script>
			</c:if>
			<form id="form1" action="system/ticket/info_without_taxCancel.do" method="post">
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">告知单编号：</td>
						<td><input name="gzdXh" readonly="readonly" id="gzdXh" value="${tdjwjccstz_list.gzdXh }"/> <input name="cancel" value="cancel" style="display:none"/></td>
						<td align="right">车船登记号：</td>
						<td><input name="ccdjh" id="ccdjh" readonly="readonly" value="${tdjwjccstz_list.ccdjh }"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船牌照号：</td>
						<td><input name="ccpzh" id="ccpzh" readonly="readonly" value="${tdjwjccstz_list.ccpzh }"/></td>
						<td align="right">车主名称：</td>
						<td><input name="czMc" id="czMc" readonly="readonly" value="${tdjwjccstz_list.czMc }"/> </td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车架号：</td>
						<td><input name="cjh" id="cjh" readonly="readonly" value="${tdjwjccstz_list.cjh }"/> </td>
						<td align="right">发动机号：</td>
						<td><input name="fdjh" id="fdjh" readonly="readonly" value="${tdjwjccstz_list.fdjh }"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船登记日期：</td>
						<td><input name="djRq" id="djRq" readonly="readonly" value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tdjwjccstz_list.djRq }" />"/></td>
						<td align="right">车船报废日期：</td>
						<td><input name="ccbfRq" id="ccbfRq" readonly="readonly" value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tdjwjccstz_list.ccbfRq }" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">应税起始年月：</td>
						<td><input name="sbqsny" id="sbqsny" readonly="readonly" value="${tdjwjccstz_list.sbqsny }"/> </td>
						<td align="right">新车车牌号：</td>
						<td><input name="xccpzh" id="xccpzh" readonly="readonly" value="${tdjwjccstz_list.xccpzh }"/> </td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">联系电话：</td>
						<td><input name="czDh" id="czDh" readonly="readonly" value="${tdjwjccstz_list.czDh }"/></td>
						<td align="right">出具日期：</td>
						<td><input name="cjRq" id="cjRq" readonly="readonly" value="<fmt:formatDate value="${tdjwjccstz_list.cjRq }" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">操作员：</td>
						<td><input name="czrMc" id="czrMc" readonly="readonly" value="${sessionScope.user.userNickname }"/><input name="czrDm" id="czrDm" readonly="readonly" style="display:none" value="${sessionScope.user.userIdentifier }"/></td>
						<td align="right">操作时间：</td>
						<td><input name="czRq" id="czRq" readonly="readonly" value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${tdjwjccstz_list.czRq }" />"/></td>
					</tr>
					<tr>
						<td colspan="4" class="form_button" style="padding-top:10px;">
							<input type="button" disabled="disabled" value="保存并打印" />
							<input type="button" value="重新打印" onclick="ShowPrint()"/>
							<input type="submit" value="作废" />
							<input type="button" value="返回" />
						</td>
					</tr>
				</table>
			</form>
			</logic:iterate>
		</logic:notEmpty>
		<logic:empty name="tdjwjccstz">
			<mytag:View table="com.zhongkai.model.book.TDjCcdjxx" id="${param.ccdjh }" name="DJXX"></mytag:View>
			<c:if test="${DJXX.djztDm!='01' }">
				<script type="text/javascript" language="javascript">
					alert("车船已注销或者迁出，无需通知单！");
					window.location.href="${pageScope.basePath }system/search/unisearch.jsp?module=ticket/info_without_tax_form.jsp";
				</script>
			</c:if>
			<script type="text/javascript" language="javascript">
				var time=new Date();
				var month=time.getMonth() + 1;
				var date=time.getDate();
				if(month<10) month="0"+month;
				if(date<10) date="0"+date;
				var year=time.getYear();
				if(year<1000) year+=1900;
				var currenttime=year+month;
				
				if(${DJXX.sbqsny}>currenttime)
				{
					alert("车船已完税，无需通知单！");
					window.location.href="${pageScope.basePath }system/search/unisearch.jsp?module=ticket/info_without_tax_form.jsp";
				}
			</script>
			<form id="form1" action="system/ticket/info_without_taxSubmit.do" method="post">
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">告知单编号：</td>
						<td><input name="gzdXh" readonly="readonly" id="gzdXh" value="<mytag:sequence key="wjccstz_seq" />"/> </td>
						<td align="right">车船登记号：</td>
						<td><input name="ccdjh" id="ccdjh" readonly="readonly" value="${DJXX.ccdjh }""/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船牌照号：</td>
						<td><input name="ccpzh" id="ccpzh" readonly="readonly" value="${DJXX.ccpzh }"/></td>
						<td align="right">车主名称：</td>
						<td><input name="czMc" id="czMc" readonly="readonly" value="${DJXX.czMc }"/> </td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车架号：</td>
						<td><input name="cjh" id="cjh" readonly="readonly" value="${DJXX.cjh }"/> </td>
						<td align="right">发动机号：</td>
						<td><input name="fdjh" id="fdjh" readonly="readonly" value="${DJXX.fdjh }"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船登记日期：</td>
						<td><input name="djRq" id="djRq" readonly="readonly" value="<fmt:formatDate type="date" pattern="yyyy-MM-dd" value="${DJXX.djRq }" />"/></td>
						<td align="right">车船报废日期：</td>
						<td><input name="ccbfRq" id="ccbfRq"  class="required" onFocus="WdatePicker({onpicked:function(){$(this).next().fadeOut(200);},maxDate:'<fmt:formatDate value="${date }" dateStyle="medium"/>'})"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">应税起始年月：</td>
						<td><input name="sbqsny" id="sbqsny" readonly="readonly" value="${DJXX.sbqsny }"/> </td>
						<td align="right">新车车牌号：</td>
						<td>粤T-<input name="xccpzh" id="xccpzh"  class="required" onkeyup="uptocase(this)"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">联系电话：</td>
						<td><input name="czDh" id="czDh" readonly="readonly" value="${DJXX.czDh }"/></td>
						<td align="right">出具日期：</td>
						<td><input name="cjRq" id="cjRq"  readonly="readonly" /></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">操作员：</td>
						<td><input name="czrMc" id="czrMc" readonly="readonly" value="${sessionScope.user.userNickname }"/><input name="czrDm" id="czrDm" readonly="readonly" style="display:none" value="${sessionScope.user.userIdentifier }"/></td>
						<td align="right">操作时间：</td>
						<td><input name="czRq" id="czRq" readonly="readonly"/></td>
					</tr>
					<tr>
						<td colspan="4" class="form_button" style="padding-top:10px;">
							<input name="saveandprint" type="button" value="保存并打印"  onclick="ShowPrint()"/>
							<input type="button" disabled="disabled" value="作废" />
							<input type="button" value="返回" onclick="location.href=${pageScope.basePath }'system/search/unisearch.jsp?module=ticket/info_without_tax_form.jsp'"/>
						</td>
					</tr>
				</table>
			</form>
			
		</logic:empty>
			
		</div>
	</div>
</div>
<!--startprint-->
<div class="PrintAreaPre" style="width:740px; height:1000px; border:0px; ">
<div  class="PrintArea" >
<table width="100%" border="0" style="line-height:180%;">
  <tr>
    <td colspan="6" style="text-align: center;font-weight: bold;font-size: 20px;">未缴纳车船税事项通知单</td>
  </tr>
  <tr>
    <td colspan="6" style="text-align: right;font-weight: bold;" >No.<span class="gzdXh"></span></td>
  </tr>
  <tr style="font-size:14px;">
    <td width="84">车辆牌号：</td>
    <td width="117"><span class="ccpzh"></span></td>
    <td width="87">车主：</td>
    <td width="143"><span class="czMc"></span></td>
    <td width="138">车辆登记日期：</td>
    <td width="145"><span class="djRq"></span></td>
  </tr>
  <tr style="font-size:14px;">
    <td>车架号：</td>
    <td><span class="cjh"></span></td>
    <td>发动机号：</td>
    <td><span class="fdjh"></span></td>
    <td>车辆报废日期：</td>
    <td><span class="ccbfRq"></span></td>
  </tr>
  <tr >
    <td colspan="6">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td bgcolor="#C7EDCC" style="font-size:14px;text-indent: 2em;text-align: justify;padding:5px;margin:5px;"><p>根据《中华人民共和国车船税暂行条例》的规定，在中华人民共和国境内，车辆、船舶的所有人或者管理人为车船税的纳税人，应当依法缴纳车船税，车船管理部门核发的车船登记证书或者行驶证书所记载日期的当月为车船税的纳税义务发生时间，车船税按年申报缴纳，纳税期限为每年1月1日至12月31日。贵车辆于<span class="sbqsny"></span>至车辆报废，未按规定缴纳车船税。根据《中华人民共和国税收征收管理法》的有关规定，纳税人不按时申报缴纳车船税的，可按如下规定处理：纳税人未按规定的期限办理纳税申报和报送纳税资料的，由税务机关责令限期改正，可以处以2000元以下的罚款；情节严重的，可以处以2000元以上10000元以下的罚款。纳税人未按照规定期限缴纳税款的，税务机关除责令限期缴纳外，从滞纳税款之日起按日加收滞纳税款万分之五的滞纳金。</p>
<p>特此告知。</p></td>
    <td>
    <table width="70" border="0">
  <tr>
    <td bgcolor="#C7EDCC" style="font-size:14px;text-align: center;padding:5px;margin:5px;"><p>第<br/>一<br/>
    联</p><p>车<br/>主<br/>存<br/></p></td>
  </tr>
</table>
</td>
  </tr>
</table>

</td>
  </tr>
<tr style="font-size:14px;">
    <td colspan="6"><p>车主确认签名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系电话：<span class="czDh"></span><br />
     车主办理报废更新，新车车牌号码：<span class="xccpzh"></span></p>
<p style="text-align: right;">中山市机动车驾驶员协会代征服务部<br />
 <span class="cjRq"></span></p></td>
  </tr>  
</table>
<hr />
<table width="100%" border="0" style="line-height:180%;">
  <tr>
    <td colspan="6" style="text-align: center;font-weight: bold;font-size: 20px;">未缴纳车船税事项通知单</td>
  </tr>
  <tr>
    <td colspan="6" style="text-align: right;font-weight: bold;" >No.<span class="gzdXh"></span></td>
  </tr>
  <tr style="font-size:14px;">
    <td width="84">车辆牌号：</td>
    <td width="117"><span class="ccpzh"></span></td>
    <td width="87">车主：</td>
    <td width="143"><span class="czMc"></span></td>
    <td width="138">车辆登记日期：</td>
    <td width="145"><span class="djRq"></span></td>
  </tr>
  <tr style="font-size:14px;">
    <td>车架号：</td>
    <td><span class="cjh"></span></td>
    <td>发动机号：</td>
    <td><span class="fdjh"></span></td>
    <td>车辆报废日期：</td>
    <td><span class="ccbfRq"></span></td>
  </tr>
  <tr >
    <td colspan="6">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td bgcolor="#C7EDCC" style="font-size:14px;text-indent: 2em;text-align: justify;padding:5px;margin:5px;"><p>根据《中华人民共和国车船税暂行条例》的规定，在中华人民共和国境内，车辆、船舶的所有人或者管理人为车船税的纳税人，应当依法缴纳车船税，车船管理部门核发的车船登记证书或者行驶证书所记载日期的当月为车船税的纳税义务发生时间，车船税按年申报缴纳，纳税期限为每年1月1日至12月31日。贵车辆于<span class="sbqsny"></span>至车辆报废，未按规定缴纳车船税。根据《中华人民共和国税收征收管理法》的有关规定，纳税人不按时申报缴纳车船税的，可按如下规定处理：纳税人未按规定的期限办理纳税申报和报送纳税资料的，由税务机关责令限期改正，可以处以2000元以下的罚款；情节严重的，可以处以2000元以上10000元以下的罚款。纳税人未按照规定期限缴纳税款的，税务机关除责令限期缴纳外，从滞纳税款之日起按日加收滞纳税款万分之五的滞纳金。</p>
<p>特此告知。</p></td>
    <td>
    <table width="70" border="0">
  <tr>
    <td bgcolor="#C7EDCC" style="font-size:14px;text-align: center;padding:5px;margin:5px;"><p>第<br/>一<br/>
    联</p><p>驾<br/>协<br/>存<br/></p></td>
  </tr>
</table>
</td>
  </tr>
</table>

</td>
  </tr>
<tr style="font-size:14px;">
    <td colspan="6"><p>车主确认签名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系电话：<span class="czDh"></span><br />
     车主办理报废更新，新车车牌号码：<span class="xccpzh"></span></p>
<p style="text-align: right;">中山市机动车驾驶员协会代征服务部<br />
 <span class="cjRq"></span></p></td>
  </tr>  
</table>
</div>
<input type="button" value="打印" onclick="ShowMessage()"/> <input type="button" value="返回" onclick="$.unblockUI();"/> 
</div>
<!--endprint-->
</body>
</html>
